<template>
  <div>
    <myCheckbox :options="state.options" v-model:currentVal="currentVal"></myCheckbox>
    {{currentVal}}
  </div>
</template>

<script>
import { reactive, ref } from "@vue/reactivity";

export default {
  setup() {
    const state = reactive({
      options:[{label:"小明",value:"1"},{label:"小红",value:"2"},{label:"小丽",value:"3"}]
    })
    const currentVal = ref(['小明'])

    return {
      state,
      currentVal
    }
  },
};
</script>

<style>
</style>